﻿@model Gfw.Web.Areas.Admin.Models.CommonQueryModel

@{
    ViewBag.Title = "充值管理 -- 用户名：" + ViewBag.LoginName;
    Layout = "~/Views/Shared/_LayoutContent.cshtml";
}

@using C.Mvc
@using (Html.BeginForm())
{
    <div id="button">
        @*@Html.FormatLink("返回", "Index", "Admin/User", new RouteValueDictionary(new { loginName = @ViewBag.LoginName }), "<a href='{link}'><span>{text}</span></a>", "current")*@
        @*@Html.FormatLink("充值", "CreateRecharge", "Admin/User", null, "<a href='{link}'><span>{text}</span></a>", "current")*@

        @Html.ActionLink("返回", "Index", "User", new { loginName = @ViewBag.LoginName }, null)
        @Html.ActionLink("充值", "CreateRecharge", new { loginName = @ViewBag.LoginName, userID = Model.Key }, null)

        @Html.HiddenFor(m => m.Key)
        @Html.EditorFor(m => m.StartDate)
        @Html.EditorFor(m => m.EndDate)

        <input type="submit" value="查询" />
    </div>
    
    <div style="align">
        @Html.ValidationSummary(true)
        @Html.ValidationMessageFor(model => model.StartDate)
        @Html.ValidationMessageFor(model => model.EndDate)
    </div>
}

<div id="@Gfw.Web.Common.ViewHelper.AjaxContainer">
    @{Html.RenderAction("RechargeList", "User", null);}
</div>